// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package org.tinaelle.server.domain;
/**
 * @see org.tinaelle.server.domain.AdAlertProcessorLog
 */
public class AdAlertProcessorLogDaoImpl
    extends org.tinaelle.server.domain.AdAlertProcessorLogDaoBase
{
    /**
     * @see org.tinaelle.server.domain.AdAlertProcessorLogDao#toAdAlertProcessorLogDTO(org.tinaelle.server.domain.AdAlertProcessorLog)
     */
    public org.tinaelle.common.dto.AdAlertProcessorLogDTO toAdAlertProcessorLogDTO(final org.tinaelle.server.domain.AdAlertProcessorLog entity)
    {
        return super.toAdAlertProcessorLogDTO(entity);
    }

    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private org.tinaelle.server.domain.AdAlertProcessorLog loadAdAlertProcessorLogFromAdAlertProcessorLogDTO(org.tinaelle.common.dto.AdAlertProcessorLogDTO adAlertProcessorLogDTO)
    {
        org.tinaelle.server.domain.AdAlertProcessorLog adAlertProcessorLog = this.load(adAlertProcessorLogDTO.getAdAlertProcessorLogId());
        if (adAlertProcessorLog == null)
        {
            adAlertProcessorLog = org.tinaelle.server.domain.AdAlertProcessorLog.Factory.newInstance();
        }
        return adAlertProcessorLog;
    }

    
    /**
     * @see org.tinaelle.server.domain.AdAlertProcessorLogDao#adAlertProcessorLogDTOToEntity(org.tinaelle.common.dto.AdAlertProcessorLogDTO)
     */
    public org.tinaelle.server.domain.AdAlertProcessorLog adAlertProcessorLogDTOToEntity(org.tinaelle.common.dto.AdAlertProcessorLogDTO adAlertProcessorLogDTO)
    {
        org.tinaelle.server.domain.AdAlertProcessorLog entity = this.loadAdAlertProcessorLogFromAdAlertProcessorLogDTO(adAlertProcessorLogDTO);
        this.adAlertProcessorLogDTOToEntity(adAlertProcessorLogDTO, entity, true);
        return entity;
    }
}